Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ECMAScript comment to JSMin.cs/NextCharExcludingComments() #177

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

newtonguass
Copy link

@newtonguass newtonguass commented Mar 3, 2020

ECMAScript states that <!--SingleLineCommentChars--> is also the comment style.
Please refer to https://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf page 773.
I just add this pattern to JSMin.cs/NextCharExcludingComments() to avoid exception.

@Shazwazza
Copy link
Owner

Wow! I'm super impressed that you took the time to modify Jsmin, it's not a nice or easy task to do :)

The source of JsMin is actually here https://github.com/Shazwazza/JsMinSharp which has unit tests. Any chance you would be able to send a PR to there with a unit test? Then we can get this re-merged back into both CDF and Smidge

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants